import CLogin from '../page/cms/login/Login'
import CHome from '../page/cms/home/Home'

import HomePage from '../page/cms/home/menuRight/HomePage'
import User from './router-cms/user'
import Manage from './router-cms/manage'
import Finance from './router-cms/finance'
import Config from './router-cms/config'


export default {
    router: [
        {
            path: '/cms',
            redirect: {
                name: 'CLogin'
            }
        }, {
            path: '/cms/login',
            name: 'CLogin',
            component: CLogin,
            meta: {title: "登录", authCMS: true, boot: false}
        }, {
            path: '/cms/home',
            redirect: {
                name: 'HomePage'
            }
        }, {
            path: '/cms/home',
            name: 'CHome',
            component: CHome,
            meta: {title: "首页", authCMS: true, boot: false},
            children: [
                {
                    path: '/cms/home-page',
                    name: 'HomePage',
                    component: HomePage,
                    meta: {title: "主页", authCMS: true, boot: false}
                },
                ...User.router,
                ...Manage.router,
                ...Finance.router,
                ...Config.router,
            ]
        }
    ]
};
